<!--这是账户余额组件-->
<template>
	<div>
		<p class="filter"></p>
		<div class="addBox"  style="padding-bottom: 100px;">
			<h3 class="fixTitle"><span>账户查询</span>
				<p>
					<em style="cursor: pointer;" ><svg-icon icon-class="jian" class="font-size16"/></em><em style="cursor: pointer;"><svg-icon class="font-size16" icon-class="fullScreen" /></em><em style="cursor: pointer;" @click="close"><svg-icon icon-class="cha" class="font-size16" /></em>
				</p>
			</h3>
			<div style="margin: 40px 20px 0;">
				<table>
					<tr>
						<td class="leftTd">账户余额：</td>
						<td class="rightTd"><span>{{balance.balance}}</span></td>
					</tr>
					<tr>
						<td class="leftTd">累计收入：</td>
						<td class="rightTd"><span>{{balance.totalIncome}}</span></td>
					</tr>
					<tr>
						<td class="leftTd">方案包：</td>
						<td class="rightTd"><span>{{balance.points}}</span></td>
					</tr>
					<tr>
						<td class="leftTd">vip时间：</td>
						<td class="rightTd"><span>{{balance.time}}</span></td>
					</tr>
				</table>
			</div>
		</div>
	</div>
</template>
<script>
  export default {
    data() {
      return {
      }
    },
    props: ['balance'],
    methods: {
      close() {
        this.$emit('changeShowBalance', false)
      }
    }
  }
</script>
<style scoped>
	p,h3 {margin:0;padding:0}
	h3 em{
		padding: 0 10px;
		font-style: normal;
	}
	h3 em:hover{
		color: #0E90D2;
	}
	.font-size16{
		font-size: 16px;
	}
	.fixTitle{
		font-weight: 500;
		font-size: 14px;
		height: 36px;
		background: #eee;
		border-bottom: 1px solid #ddd;
		position: fixed;
		width: 400px;
		line-height: 36px;
		padding: 0 10px;
		z-index: 98;
	}
	.fixTitle p{
		position: absolute;
		right: 20px;
		top: 0px;
	}
	.filter {
		width: 100%;
		height: 100%;
		background: rgba(0,0,0,.3);
		position: fixed;
		left: 0;
		top: 0;
		z-index: 90;
	}
	.addBox {
		width: 400px;
		height: auto;
		background: #fff;
		position: fixed;
		left: 35%;
		top: 30%;
		z-index: 101;
	}
	table{
		width: 100%;
		border: 1px solid #eee;
		border-spacing: 0;
		border-collapse: collapse;
	}
	td{
		border: 1px solid #eee;
		line-height: 50px;
		padding-left: 10px;
	}
	.leftTd{
		width: 35%;
	}
	.rightTd{
		width: 65%;
	}
</style>
